<%@ page pageEncoding="UTF-8"%>

<%@ taglib uri="/tags/struts-tiles" prefix="tiles"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
<%@ taglib uri="/tags/struts-nested" prefix="nested"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<script>
    /**
        判断日期格式 2011-06-30
        strDate：检测的日期格式
        return： true/false
     **/
     function   isDate(strDate){ 
     
       
        var   strSeparator = "-";   //日期分隔符 
        var   strDateArray; 
        var   intYear; 
        var   intMonth; 
        var   intDay; 
        var   boolLeapYear; 
        //var strDate=form1.a.value   //表单中的日期值
        strDateArray = strDate.split(strSeparator); 
        
        if(strDateArray.length!=3)    {   alert('提示: 日期格式错误! \r\n  请依【YYYY-MM-DD】格式输入！'); return   false;   }
        
        intYear  =  parseInt(strDateArray[0],10); 
        intMonth  =  parseInt(strDateArray[1],10); 
        intDay   =   parseInt(strDateArray[2],10); 
        
        if(isNaN(intYear)||isNaN(intMonth)||isNaN(intDay))   { alert('提示: 日期格式错误! \r\n  请依【YYYY-MM-DD】格式输入！'); return   false; }
        
        if(intMonth>12||intMonth<1) {   alert('提示: 日期格式错误! \r\n  请依【YYYY-MM-DD】格式输入！'); return   false;   }
        
        if((intMonth==1||intMonth==3||intMonth==5||intMonth==7||intMonth==8||intMonth==10||intMonth==12)&&(intDay>31||intDay<1))   {   alert('提示: 日期格式错误! \r\n  请依【YYYY-MM-DD】格式输入！'); return   false;   }
        
        if((intMonth==4||intMonth==6||intMonth==9||intMonth==11)&&(intDay>30||intDay<1))   {   alert('提示: 日期格式错误! \r\n  请依【YYYY-MM-DD】格式输入！'); return   false;   }
        
        if(intMonth==2){ 
              if(intDay<1)   {   alert('提示: 日期格式错误! \r\n 请依【YYYY-MM-DD】格式输入！'); return   false;   }
              
              boolLeapYear   =   false;  
            if((intYear%4==0 && intYear %100!=0)||(intYear %400==0))
    {
      boolLeapYear=true;
    }
              
              if(boolLeapYear){ 
                    if(intDay>29) {   alert('提示: 日期格式错误! \r\n  请依【YYYY-MM-DD】格式输入！'); return   false;   }
              } 
              else{ 
                    if(intDay>28)  {   alert('提示: 日期格式错误! \r\n  请依【YYYY-MM-DD】格式输入！'); return   false;   }
              } 
        } 
        
        return   true; 
  } 

	
	function move(){
		var obj1=document.getElementById("city1");
		var obj2=document.getElementById("city2");
		var obj3=document.getElementById("city3");
		for(var i=0; i<obj1.length;i++){
			if(obj1.options[i].value=="3"||obj1.options[i].value=="4"||obj1.options[i].value=="5"){
				
				if(obj1.options[i].value=="3"){
					document.getElementById("temp1").value='1';
				}
				if(obj1.options[i].value=="4"){
					document.getElementById("temp2").value='2';
				}
				if(obj1.options[i].value=="5"){
				   // alert(10);
					document.getElementById("temp3").value='3';
				}
				document.getElementById("flag").value='1';
				obj1.remove(i);
			}
		}
		for(var i=0; i<obj2.length;i++){
			if(obj2.options[i].value=="3"||obj2.options[i].value=="4"||obj2.options[i].value=="5"){
				obj2.remove(i);
			}
		}
		for(var i=0; i<obj3.length;i++){
			if(obj3.options[i].value=="3"||obj3.options[i].value=="4"||obj3.options[i].value=="5"){
				obj3.remove(i);
			}
		}
		return;
	}
	
	function add(){
		var obj1=document.getElementById("city1");
		var obj2=document.getElementById("city2");
		var obj3=document.getElementById("city3");
		var temp1=document.getElementById("temp1").value;
		var temp2=document.getElementById("temp2").value;
		var temp3=document.getElementById("temp3").value;
		//alert(temp3);
		
		if(document.getElementById("flag").value=='1'){
			if(temp1=='1'){
				  var opt1 = obj1.childNodes[0];
				  var opt2 = obj2.childNodes[0];
				  var opt3 = obj3.childNodes[0];
				  el1 = document.createElement("option");
				  el1.value="3";
				  el1.appendChild(document.createTextNode("软座"));
				  
				  el2 = document.createElement("option");
				  el2.value="3";
				  el2.appendChild(document.createTextNode("软座"));
				  
				  el3 = document.createElement("option");
				  el3.value="3";
				  el3.appendChild(document.createTextNode("软座"));
				  obj1.insertBefore(el1,opt1);
				  obj2.insertBefore(el2,opt2);
				  obj3.insertBefore(el3,opt3);
				  
			}
			if(temp2=='2'){
				 var opt1 = obj1.childNodes[0];
				  var opt2 = obj2.childNodes[0];
				  var opt3 = obj3.childNodes[0];
				  el1 = document.createElement("option");
				  el1.value="4";
				  el1.appendChild(document.createTextNode("软卧"));
				  
				  el2 = document.createElement("option");
				  el2.value="4";
				  el2.appendChild(document.createTextNode("软卧"));
				  
				  el3 = document.createElement("option");
				  el3.value="4";
				  el3.appendChild(document.createTextNode("软卧"));
				  
				  obj1.insertBefore(el1,opt1);
				  obj2.insertBefore(el2,opt2);
				  obj3.insertBefore(el3,opt3);
			}
			if(temp3=='3'){
				  //alert(10);
				  var opt1 = obj1.childNodes[0];
				  var opt2 = obj2.childNodes[0];
				  var opt3 = obj3.childNodes[0];
				  el1 = document.createElement("option");
				  el1.value="5";
				  el1.appendChild(document.createTextNode("动车一等座"));
				  
				  el2 = document.createElement("option");
				  el2.value="5";
				  el2.appendChild(document.createTextNode("动车一等座"));
				  
				  el3 = document.createElement("option");
				  el3.value="5";
				  el3.appendChild(document.createTextNode("动车一等座"));
				  
				  obj1.insertBefore(el1,opt1);
				  obj2.insertBefore(el2,opt2);
				  obj3.insertBefore(el3,opt3);
			}
			document.getElementById("flag").value='0'
		}
		
		return;
	}

function check(){
		var cc='${sessionScope.SESSION_TICKETS_CURRENT}';
		if(!document.getElementById("orderType1").checked&&!document.getElementById("orderType2").checked){
        	alert('您是学生吗?');
        	return false;
    	}
		if(cc==''){
			alert('您想坐什么车次呢?');
			return false;
		}
		var orderTrainDate1st=document.getElementById("orderTrainDate1st").value;
		var orderTrainDate2nd=document.getElementById("orderTrainDate2nd").value;
		var orderTrainDate3th=document.getElementById("orderTrainDate3th").value;
		if(orderTrainDate1st==''){
			alert('您想坐什么时候的火车呢?');
			return false;
		}
		if(orderTrainDate2nd==''){
			alert('如果没有你要出发的时间,你想换什么时候出发?');
			return false;
		}
		if(orderTrainDate3th==''){
			alert('如果没有你要出发的时间,你想换什么时候出发?');
			return false;
		}
		return true;
	
}

</script>

<div style="margin: 0 15px;">

	<!-- Personal Profile -->
	<div class="box" style="margin-top:5px;">
		<table cellspacing="0" cellpadding="0" border="0" width="100%">
			<col width="6px" />
			<col width="946px" />
			<col width="6px" />
			<tr>
				<td class="box_top_l"></td>
				<td class="box_top_c box_title">个人信息</td>
				<td class="box_top_r"></td>
			</tr>
			<tr>
				<td class="box_left"></td>
				<td>
					<div class="box_content">
						<table class="datagrid no_hover" cellspacing="0" cellpadding="0" width="100%" border="1">
							<thead>
								<tr>
									<td>学号</td>
									<td>姓名</td>
									<td>专业</td>
									<td>班级</td>
									<td>校园卡号</td>
									<td>邮箱</td>
									<td>手机号码</td>
									<td>住址</td>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td align="center">${sessionScope.USER.accountNo}</td>
									<td align="center">${sessionScope.USER.accountRealName}</td>
									<td align="center">${sessionScope.USER.accountMajority}</td>
									<td align="center">${sessionScope.USER.accountClass}</td>
									<td align="center"></td>
									<td align="center">${sessionScope.USER.accountEmail}</td>
									<td align="center">${sessionScope.USER.accountMobilePhone}</td>
									<td align="center"></td>
								</tr>
							</tbody>
						</table>	
					</div>
				</td>
				<td class="box_right"></td>
			</tr>
			<tr>
				<td class="box_btm_l"></td>
				<td class="box_btm_c"></td>
				<td class="box_btm_r"></td>
			</tr>
		</table>
	</div>
	
	<!-- Train Information -->
	<div class="box" style="overflow:auto">
		
		<!-- Ticket Information -->
		<div class="float_right" style="width:470px;height: 306px">
			<table cellspacing="0" cellpadding="0" border="0" width="100%" height="100%">
				<input type="hidden" id="temp1" />
				<input type="hidden" id="temp2" />
				<input type="hidden" id="temp3" />
				<input type="hidden" id="flag" />
				<col width="6px" />
				<col width="458px" />
				<col width="6px" />
				<tr>
					<td class="box_top_l"></td>
					<td class="box_top_c box_title">订票信息</td>
					<td class="box_top_r"></td>
				</tr>
				<tr>
					<td class="box_left"></td>
					<td valign="top">
						<div class="box_content">
						<form name="myform" id="myform" class='login' action="app/order_build" method="post">
						<input name="flag" type="hidden" value="1"/>
						<input name="editOrder" type="hidden" value="1"/>
										
							<table border="0" cellspacing="35" cellpadding="0" border="0" width="100%">
								<tr>
									
									<td colspan="3" height="70" align="right"><input type="radio" id="orderType1" name="orderType" value="1"
									 onclick="move();document.getElementById('orderNumber').options[0].selected=true;"/> 学生票</td>
									<td></td>
									<td colspan="3"><input type="radio" id="orderType2"  name="orderType" value="0" onclick="add();"/> 非学生票</td>
								</tr>
								<tr style="">
									<td align="left" width="70" height="70">订票数：</td>
									<td width="40"></td>
									<td colspan="5" width="320">
									<select id="orderNumber" name="orderNumber" 
									onclick="if(document.getElementById('orderType1').checked) document.getElementById('orderNumber').options[0].selected=true;"
									>   
									 
										<option value="1">1张</option>
										<option value="2">2张</option>
										<option value="3">3张</option>
										<option value="4">4张</option>
										<option value="5">5张</option>
										<option value="6">6张</option>
										<option value="7">7张</option>
										<option value="8">8张</option>
									</select>
									</td>
								</tr>
								<tr>
									<td align="left">出发日期：</td>
									<td>首选</td>
									<td><input type="text" id="orderTrainDate1st" value="${fn:substring(editOrder.orderTrainDate1st,0,10)}"  name="orderTrainDate1st"  onblur="isDate(document.getElementById('orderTrainDate1st').value);" class="text" size="10"/></td>
									<td>次选</td>
									<td><input type="text" id="orderTrainDate2nd"  value="${fn:substring(editOrder.orderTrainDate2nd,0,10)}" name="orderTrainDate2nd" onblur="isDate(document.getElementById('orderTrainDate2nd').value);"  class="text" size="10"/></td>
									<td>再选</td>
									<td><input type="text" id="orderTrainDate3th"  value="${fn:substring(editOrder.orderTrainDate3th,0,10)}" name="orderTrainDate3th" onblur="isDate(document.getElementById('orderTrainDate3th').value);"  class="text" size="10"/></td>
								</tr>
								<tr>
									<td align="left" height="70">车票类型：</td>
									<td>首选</td>
									<td>
									<select id="city1" name="orderTrainSeatType1st" onclick="if(document.getElementById('orderType1').checked) move();">
										<c:if test="${fn:trim(sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceHardSeat) ne 0 }">
										<option value="1">硬座</option>
										</c:if>
										<c:if test="${fn:trim(sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceHardBerthMiddle) ne 0 }">
										<option value="2">硬卧</option>
										</c:if>
										<c:if test="${fn:trim(sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceSoftSeat) ne 0 }">				
										<option value="3">软座</option>
										</c:if>
										<c:if test="${fn:trim(sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceSoftBerthLow) ne 0 }">
										<option value="4">软卧</option>
										</c:if>
										<c:if test="${fn:trim(sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceSoftLv1st) ne 0 }">	
										<option value="5">动车一等座</option>
										</c:if>
										<c:if test="${fn:trim(sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceSoftLv2nd) ne 0 }">
										<option value="6">动车二等座</option>
										</c:if>
									</select>
									
									</td>
									<td>次选</td>
									<td>
									
									<select id="city2" name="orderTrainSeatType2nd" >
										<c:if test="${fn:trim(sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceHardSeat) ne 0 }">
										<option value="1">硬座</option>
										</c:if>
										<c:if test="${fn:trim(sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceHardBerthMiddle) ne 0 }">
										<option value="2">硬卧</option>
										</c:if>
										<c:if test="${fn:trim(sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceSoftSeat) ne 0 }">				
										<option value="3">软座</option>
										</c:if>
										<c:if test="${fn:trim(sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceSoftBerthLow) ne 0 }">
										<option value="4">软卧</option>
										</c:if>
										<c:if test="${fn:trim(sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceSoftLv1st) ne 0 }">	
										<option value="5">动车一等座</option>
										</c:if>
										<c:if test="${fn:trim(sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceSoftLv2nd) ne 0 }">
										<option value="6">动车二等座</option>
										</c:if>
									</select>
									</td>
									<td>再选</td>
									<td>
									<select id="city3" name="orderTrainSeatType3th" >
										<c:if test="${fn:trim(sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceHardSeat) ne 0 }">
										<option value="1">硬座</option>
										</c:if>
										<c:if test="${fn:trim(sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceHardBerthMiddle) ne 0 }">
										<option value="2">硬卧</option>
										</c:if>
										<c:if test="${fn:trim(sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceSoftSeat) ne 0 }">				
										<option value="3">软座</option>
										</c:if>
										<c:if test="${fn:trim(sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceSoftBerthLow) ne 0 }">
										<option value="4">软卧</option>
										</c:if>
										<c:if test="${fn:trim(sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceSoftLv1st) ne 0 }">	
										<option value="5">动车一等座</option>
										</c:if>
										<c:if test="${fn:trim(sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceSoftLv2nd) ne 0 }">
										<option value="6">动车二等座</option>
										</c:if>
									</select>
									
									</td>
								</tr>
								
								<tr>
									<c:if test="${flag==null||editOrder!=null}">
									<td colspan="7" align="center"><input type="button" onclick="if(check())submit();" class="small-btn" value="保存" /></td>
									</c:if>
									<c:if test="${flag!=null&&editOrder==null}">
									<td colspan="7" align="center" style="color:red;">一个人最多只能拥有一个订单，请删除订单后再进行操作！</td>
									</c:if>
								</tr>
							</table>
						</form>	
						</div>
					</td>
					<td class="box_right"></td>
				</tr>
				<tr>
					<td class="box_btm_l"></td>
					<td class="box_btm_c"></td>
					<td class="box_btm_r"></td>
				</tr>
			</table>
		</div>
		
		<!-- Train Information -->
		<div style="width:470px; margin-right:480px; height: 306px">
			<table cellspacing="0" cellpadding="0" border="0" width="100%">
				<col width="6px" />
				<col width="458px" />
				<col width="6px" />
				<tr>
					<td class="box_top_l"></td>
					<td class="box_top_c box_title">车次信息</td>
					<td class="box_top_r"></td>
				</tr>
				<tr>
					<td class="box_left"></td>
					<td>
						<div class="box_content">
							
							<p class="box" style="line-height: 30px;">
								<input type="button"  onclick="window.location.href='/eduapp/app/train/search';" value="查询车次信息" class="big-btn" style="margin-right: 10px" />如需添加车次信息，请点击‘查询车次信息’按钮
							</p>

							<table cellspacing="0" cellpadding="4" border="1" width="100%">
								<col width="70px" />
								<tr>
									<td bgcolor="#c2d69a">车次</td>
									<td>
										<c:if test="${sessionScope.SESSION_TICKETS_CURRENT ne null}">
											${sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainNumber} (${sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainStationStarting} - ${sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainStationTerminating})
										</c:if>
									</td>
								</tr>
								<tr>
									<td bgcolor="#c2d69a">车型</td>
									<td>${sessionScope.SESSION_TICKETS_CURRENT != null ? sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainType : ''}</td>
								</tr>
								<tr>
									<td bgcolor="#c2d69a">出发站</td>
									<td>${sessionScope.SESSION_TICKETS_CURRENT != null ? sessionScope.SESSION_TICKETS_CURRENT.orderTrainStationFrom : ''}</td>
								</tr>
								<tr>
									<td bgcolor="#c2d69a">出发时间</td>
									<td>${sessionScope.SESSION_TICKETS_CURRENT != null ? sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleStartingVO.trainDepartureTime : ''}</td>
								</tr>
								<tr>
									<td bgcolor="#c2d69a">到达站</td>
									<td>${sessionScope.SESSION_TICKETS_CURRENT != null ? sessionScope.SESSION_TICKETS_CURRENT.orderTrainStationTo : ''}</td>
								</tr>
								<tr>
									<td bgcolor="#c2d69a">到达时间</td>
									<td>${sessionScope.SESSION_TICKETS_CURRENT != null ? sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainArriveTime : ''}</td>
								</tr>
								<tr>
									<td bgcolor="#c2d69a">车票价格</td>
									<td>硬座：${sessionScope.SESSION_TICKETS_CURRENT != null ? sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceHardSeat : ''}
										硬卧：${sessionScope.SESSION_TICKETS_CURRENT != null ? sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceHardBerthMiddle : ''}     
										软座：${sessionScope.SESSION_TICKETS_CURRENT != null ? sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceSoftSeat : ''}
										软卧：${sessionScope.SESSION_TICKETS_CURRENT != null ? sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceSoftBerthLow : ''}
										二等座：${sessionScope.SESSION_TICKETS_CURRENT != null ? sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceSoftLv1st : ''}
										一等座：${sessionScope.SESSION_TICKETS_CURRENT != null ? sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainPriceSoftLv2nd : ''}
										</td>
									
								</tr>
								<tr>
									<td bgcolor="#c2d69a">里程(公里)</td>
									<td>${sessionScope.SESSION_TICKETS_CURRENT != null ? sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleTerminationVO.trainRange - sessionScope.SESSION_TICKETS_CURRENT.orderTrain.trainScheduleStartingVO.trainRange : ''}</td>
								</tr>
							</table>
						</div>
					</td>
					<td class="box_right"></td>
				</tr>
				<tr>
					<td class="box_btm_l"></td>
					<td class="box_btm_c"></td>
					<td class="box_btm_r"></td>
				</tr>
			</table>
		</div>

	</div>

	<!-- Order Information -->
	<div class="box">
		<table cellspacing="0" cellpadding="0" border="0" width="100%">
			<col width="6px" />
			<col width="946px" />
			<col width="6px" />
			<tr>
				<td class="box_top_l"></td>
				<td class="box_top_c box_title">订单信息</td>
				<td class="box_top_r"></td>
			</tr>
			<tr>
				<td class="box_left"></td>
				<td>
					<div class="box_content">
						<table class="datagrid no_hover" cellspacing="0" cellpadding="0" width="100%" border="1">
							<thead>
								<tr>
									<td style="background:none;border-bottom: 1px solid #FFFFFF;border-left: 1px solid #FFFFFF;border-top: 1px solid #FFFFFF;"></td>
									<td>车次</td>
									<td>始发站</td>
									<td>发车时间</td>
									<td>到达站</td>
									<td>到达时间</td>
									<td>发车日期</td>
									<td>车票类型</td>
									<td>订票数</td>
									<td>车票金额</td>
								</tr>
							</thead>
							<tbody>
								
								
								<c:forEach items="${reallyorders}" var="order" varStatus="vs">
				                    <tr>
									    <td style="border-bottom: 1px solid #FFFFFF;border-left: 1px solid #FFFFFF;border-top: 1px solid #FFFFFF;" align="center">首选</td>
		                                <td align="center" width="150">
		                                 ${order.orderTrain.trainNumber} (${order.orderTrain.trainStationStarting} - ${order.orderTrain.trainStationTerminating})
		                                </td>
		                               
		                                <td align="center">
		                                      <c:out value="${order.orderTrainStationFrom}"/>
		                                </td>
		                                <td align="center">
		                                      ${order.orderTrain.trainScheduleStartingVO.trainDepartureTime}
		                                </td>
		                                 <td align="center">
		                                      <c:out value="${order.orderTrainStationTo}"/>
		                                </td>
		                                 <td align="center">
		                                      ${order.orderTrain.trainScheduleTerminationVO.trainArriveTime}
		                                </td>
		                                 <td align="center">
		                                      <c:out value="${order.orderTrainDate1st}"/>
		                                       
		                                </td>
		                                 <td align="center">
		                                   <c:choose>
										    <c:when test="${order.orderTrainSeatType1st=='1'}">
										     硬座		
											</c:when>
											<c:when test="${order.orderTrainSeatType1st=='2'}">
										     硬卧		
											</c:when>
											<c:when test="${order.orderTrainSeatType1st=='3'}">
										     软座	
											</c:when>
											<c:when test="${order.orderTrainSeatType1st=='4'}">
										     软卧		
											</c:when>
											<c:when test="${order.orderTrainSeatType1st=='5'}">
										     一等座		
											</c:when>
											<c:when test="${order.orderTrainSeatType1st=='6'}">
										     二等座	
											</c:when>
											
											</c:choose>
		                                 
		                                    
		                                </td>
		                                 <td align="center">
		                                      <c:out value="${order.orderNumber}"/>
		                                </td>
		                                 <td align="center">
		                                      <c:out value="${order.orderCost*order.orderNumber}"/>
		                                </td>
			                            </tr>                    
				                </c:forEach>
				                
				                
								
							</tbody>
						</table>
						
						<c:if test="${sessionScope.type!='1'}">
						<div class="box" align="right">
							<input type="button" class="small-btn" value="保存订单" onclick="if('${reallyorders}'!='')window.location.href='/eduapp/app/order/save';"/>
							<input type="button" class="small-btn" value="取消订单"  onclick="window.location.href='/eduapp/app/order/remove';" style="margin-left: 10px;"/>
						</div>
						</c:if>

					</div>
				</td>
				<td class="box_right"></td>
			</tr>
			<tr>
				<td class="box_btm_l"></td>
				<td class="box_btm_c"></td>
				<td class="box_btm_r"></td>
			</tr>
		</table>		
	</div>

</div>